const QRCode = require('qrcode');

QRCode.toString('Pony Mark, the richest man in China.\n 腾讯马，中国首富', { type: 'terminal' }, function(err, data) {
  console.log(data);
})